package com.zhanggm.student.utils;

import cn.hutool.core.io.FileUtil;
import cn.hutool.extra.qrcode.QrCodeUtil;
import cn.hutool.extra.qrcode.QrConfig;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.UUID;

/**
 * @author Administrator
 */
public class QrCodeUtils {

    public static void main(String[] args) {
        QrConfig qrConfig = new QrConfig()
                .setWidth(400).setHeight(400)
                .setBackColor(Color.gray);
        QrCodeUtil.generate("百度:http://baidu.com", qrConfig, FileUtil.file("d:\\\\pic\\\\qrcode.jpg"));
    }

}
